{extend name="base:base" /}
{block name="body"}






<link href="__THEME__/css/inner.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="__THEME__/js/jquery.jqzoom.js"></script>
<script type="text/javascript" src="__THEME__/js/piczoom.js"></script>

<div class="bread">
    <div class="bread_text wrap">
        <span>当前位置：<a href="javascript:;">首页</a>
            
            
            <?php
            $bread = help_breadcrumb_goods($cid);
            foreach ($bread as $key => $value) {
                ?>
                <span>&gt;</span> <a href="<?php echo my_url('index/index/lists_goods?id=' . $key); ?>"><?php echo $value; ?></a>
            <?php } ?>
         
            
    </div>
</div>
<!--inner start -->
<div class="inner wrap clearfix">
    <aside class="left">
        <div class="navbox">
            <div class="nav-title">
                <h2>产品中心</h2>
                <span class="icon_dot"></span>
            </div>
            <div class="nav-con">

                <?php
                $category = db('goods_cat')->order('listorder')->select();
                // 转多维
                $category = node_merge($category);
                foreach ($category as $key => $value) {
                    ?>
                    <dl>
                        <dt class="selected">
                            <span class="common-img flex minus"></span>
                            <a href="<?php echo my_url('index/index/lists_goods?id=' . $value['id']) ?>"><?php echo $value['title'] ?></a>
                        </dt>
                    </dl>
                <?php } ?>
                               
            </div>
        </div>
    </aside> 

    <div class="right">
        <div class="title">
            <h1><?php echo $category_name; ?></h1>
        </div>
        <div class="product-info clearfix">
            <!-- 电脑版产品图 -->
            <div class="product-img fl">
                <div id="preview" class="spec-preview"> 
                    <span class="jqzoom">
                        <img jqimg="images/1-151229233054-lp.jpg" src="images/1-151229233054-lp.jpg">
                    </span> 
                </div>

                <div class="spec-scroll clearfix"> 
                    <a class="prev"></a> <a class="next"></a>
                    <div class="items">
                        <ul>


                            <?php
                            foreach ($albums as $key => $value) {
                                ?>
                                <li><img alt="" bimg="images/1-151229233054.jpg" src="<?php echo res_http($value) ?>" onmousemove="preview(this);"></li>
                            <?php } ?>



                        </ul>
                    </div>
                </div>
            </div>

            <!-- 手机版产品图 -->
            <script src="__THEME__/js/TouchSlide.1.1.js"></script>
            <div id="product_slide" class="focus2">
                <div class="hd">
                    <ul></ul>
                </div>
                <div class="bd">
                    <ul>
                         <?php
                            foreach ($albums as $key => $value) {
                                ?>
                        <li><a href="#"><img src="<?php echo res_http($value) ?>" /></a></li>
                            <?php } ?>
                       
                    </ul>
                </div>
            </div>
            <script type="text/javascript">
                                TouchSlide({
                                    slideCell: "#product_slide",
                                    titCell: ".hd ul", //开启自动分页 autoPage:true ，此时设置 titCell 为导航元素包裹层
                                    mainCell: ".bd ul",
                                    effect: "leftLoop",
                                    autoPlay: true, //自动播放
                                    autoPage: true //自动分页
                                });
            </script>


            <div class="product-para fr">
                <ul>
                    <li><h2><?php echo $title; ?></h2>
                    </li>
                    <li>发布：<?php echo date('Y-m-d', $create_time); ?></li>
                    <li>浏览次数：<?php echo $hits; ?></li>
                    <li>产品规格： </li>
                </ul>
            </div>
        </div>
        <div class="product-des">
            <h3>产品介绍</h3>
        </div>
        <div class="content clearfix">
            <?php echo $content; ?>
        </div>
    </div>

</div>
<!--inner end-->




{/block}


{block name="foot_js"}
<script src="<?php echo my_url('index/index/hits_goods?id=' . $id); ?>" type="text/javascript" language="javascript"></script>
{/block}